/**
 * Created by lxh on 2018/2/24.
 */
import {requeste} from '../utils/request';
/**
 *查询所有申请成为分销商记录
 */
export async function queryDistributor(params) {
    return requeste('queryDistributor', 'queryAllDistributor', {
        method: 'POST',
        body: params,
    });
}
/**
 *  修改申请成为供应商的审核状态
 */
export async function examineDistributor(params) {
    return requeste('examineDistributor', 'examineDistri', {
        method: 'POST',
        body: params,
    });
}
/**
 * 修改申请成为分销商的审核状态
 */
export async function newExamineDistributor(params) {
    return requeste('newExamineDistributor', 'examineDistri', {
        method: 'POST',
        body: params,
    });
}
/**
 * 查询审核通过的记录和未通过的记录
 */
export async function queryPassAndUnPass(params) {
    return requeste('queryPassAndUnPass', 'queryPassAndUnPassDistributor', {
        method: 'POST',
        body: params,
    })
}
/**
 * 修改申请成为供应商的审核状态
 * */
export async function examineSupplier(params) {
    return requeste('examineSupplier', 'examineSupp', {
        method: 'POST',
        body: params,
    });
}

/**
 *分销商管理-查询所有分销商信息
 *
 * @author xxf
 * @date 2018/2/6
 */
export async function queryDistributorManage(params) {
    return requeste('DistributorManageService','queryAllDistributorManage',{
        method:'POST',
        body:params,
    })
}

/**
 * 分销商管理-修改分销商信息
 *
 * @author xxf
 * @date 2018/2/7
 * */
export async function updateDistributorManage(params) {
    return requeste('DistributorManageService','updateDistributorManage',{
        method:'POST',
        body:params,
    })
}

/**
 *分销商管理-修改店铺信息
 *
 * @author xxf
 * @date 2018/3/5
 */
export async function updateDistributorShopInfo(params) {
  return requeste('DistributorManageService','updateDistributorShopInfo',{
    method:'POST',
    body:params,
  })
}